import React from 'react';
import Item from './Item';

const List = props => (
    <ul>
        {
            props.items.map((item, index) =>
                <li key={index}><Item name={item}/></li>)
        }
    </ul>
);

export default List;
